Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple build changes, add gunicorn, build nginx docker image for production #207

Merged
merged 13 commits into from
Dec 11, 2023

Conversation

igobranco
Copy link
Member

Changes:

  • build: add stop makefile target
  • build: re-add wait-for-mysql simplify run target
  • fix: missing STATIC_ROOT setting
  • build: add Makefile logs target
  • feat: optionally deliver static files by app
  • feat: load SECRET_KEY also from env variable
  • fix: gitignore path
  • build: push nginx docker image with static assets
  • build: add multi stage docker build and nginx
  • build: update dependencies
  • feat: add gunicorn has dependency

Update python dependencies using poetry.
Load the SECRET_KEY from the config.yml file or by environment variable.
This allows us to run collectstatic without a special config.yml file or a specific
static.py settings file.
The application is small and for internal use so we can deliver
static assets directly by the application.
The wait-for-mysql.sh is good for development proposes,
so I've readd it. I've also included it to the docker image,
just in case.
The run Makefile target run the DBs inside docker.
docker/files/usr/local/etc/gunicorn/app.py Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
wait-for-mysql.sh Show resolved Hide resolved
@igobranco igobranco merged commit 1dcbe92 into main Dec 11, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants